#!/usr/bin/env python

import sys, os

def init ( l, admin = 0 ):
	from liwe import parts

	#parts.add ( l.layman, [ "base" ] )

	l.layman.add_js ( "modules/site_utils/js/site_utils.js" )
	l.layman.add_css ( "modules/site_utils/css/style.css" )

	l.layman.add_js_code ( "SiteUtils.init();" )

	if admin and int ( admin ):
		l.layman.add_js ( "modules/site_utils/js/site_utils.admin.js" )
		l.layman.add_js_code ( "SiteUtils.admin.init();" )

	return ''
